package com.summer.shopping.enums.redis;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

public class RedisKeyConstant {

    private static final String checkinKeyPrefix = "checkin:";

    public static String checkinKey(Date date){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy:MM:dd");
        String dateFormatStr = sdf.format(date);
        return checkinKeyPrefix+dateFormatStr;
    }


}
